/*
 * File: p6_Model_Reference.h
 *
 * Code generated for Simulink model 'p6_Model_Reference'.
 *
 * Model version                  : 1.3
 * Simulink Coder version         : 25.1 (R2025a) 21-Nov-2024
 * C/C++ source code generated on : Sat Aug 23 11:12:48 2025
 *
 * Target selection: ert.tlc
 * Embedded hardware selection: Intel->x86-64 (Windows64)
 * Code generation objectives: Unspecified
 * Validation result: Not run
 */

#ifndef p6_Model_Reference_h_
#define p6_Model_Reference_h_
#ifndef p6_Model_Reference_COMMON_INCLUDES_
#define p6_Model_Reference_COMMON_INCLUDES_
#include "rtwtypes.h"
#include "math.h"
#endif                                 /* p6_Model_Reference_COMMON_INCLUDES_ */

#include "p6_Model_Reference_types.h"
#include "myAdd.h"

/* Macros for accessing real-time model data structure */
#ifndef rtmGetErrorStatus
#define rtmGetErrorStatus(rtm)         ((rtm)->errorStatus)
#endif

#ifndef rtmSetErrorStatus
#define rtmSetErrorStatus(rtm, val)    ((rtm)->errorStatus = (val))
#endif

#ifndef rtmGetErrorStatusPointer
#define rtmGetErrorStatusPointer(rtm)  ((const char_T **)(&((rtm)->errorStatus)))
#endif

/* Block states (default storage) for system '<Root>' */
typedef struct {
  MdlrefDW_myAdd_T Model_InstanceData; /* '<Root>/Model' */
  MdlrefDW_myAdd_T Model1_InstanceData;/* '<Root>/Model1' */
} DW_p6_Model_Reference_T;

/* Real-time Model Data Structure */
struct tag_RTM_p6_Model_Reference_T {
  const char_T *errorStatus;
};

/* Block states (default storage) */
extern DW_p6_Model_Reference_T p6_Model_Reference_DW;

/* Model entry point functions */
extern void p6_Model_Reference_initialize(void);
extern void p6_Model_Reference_step(void);
extern void p6_Model_Reference_terminate(void);

/* Real-time Model object */
extern RT_MODEL_p6_Model_Reference_T *const p6_Model_Reference_M;

/*-
 * These blocks were eliminated from the model due to optimizations:
 *
 * Block '<Root>/Display' : Unused code path elimination
 * Block '<Root>/Display1' : Unused code path elimination
 */

/*-
 * The generated code includes comments that allow you to trace directly
 * back to the appropriate location in the model.  The basic format
 * is <system>/block_name, where system is the system number (uniquely
 * assigned by Simulink) and block_name is the name of the block.
 *
 * Use the MATLAB hilite_system command to trace the generated code back
 * to the model.  For example,
 *
 * hilite_system('<S3>')    - opens system 3
 * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3
 *
 * Here is the system hierarchy for this model
 *
 * '<Root>' : 'p6_Model_Reference'
 */
#endif                                 /* p6_Model_Reference_h_ */

/*
 * File trailer for generated code.
 *
 * [EOF]
 */
